var opentext = {};
opentext.cvs = {};

opentext.cvs.OTViewer = function(opts) {
	var me = this;

	me.data = {
		cfg: {
			"frame":"Viewer",
		},
		doc: null
	};
	console.log("Viewer constructor");
};

opentext.cvs.OTViewer.prototype = {
	show: function() {
		var me = this;
		console.log("viewer.show()");
	},

	init: function() {
		var me = this;
		console.log("viewer.init()");
		me.data.doc = new OTDocument();
	},

	addPage: function(t) {
		var me = this;
		var p = new OTPage();
		p.addText(t);
		me.data.doc.addPage(p);
		console.log("Viewer.add()");
	}
};

//(function() {
//	return OTViewer;
//}());
